export default {
    systemInfo:{
        screenWidth:0 ,
		screenHeight:0 ,
		windowWidth: 0,
		windowHeight: 0,
		windowTop: 0,
		windowBottom: 0,
		statusBarHeight: 0,
    },
    getSystemInfo(){
        uni.getSystemInfo({
            success: function (res) {
				this.systemInfo.screenWidth = res.screenWidth;
				this.systemInfo.screenHeight = res.screenHeight;
				this.systemInfo.windowWidth = res.windowWidth;
				this.systemInfo.windowHeight = res.windowHeight;
				this.systemInfo.windowTop = res.windowTop;
				this.systemInfo.windowBottom = res.windowBottom;
				this.systemInfo.statusBarHeight = res.statusBarHeight;
            }
        });
    },
}